package com.zyzd.general.module.managerlist;

import com.zyzd.general.entity.local.ManagerListEntity;
import com.zyzd.general.model.ManagerListModel;
import com.zyzd.retrofit.base.BaseRecyclerPresenter;

/**
 * Created by lzy on 2018/5/15 0015.
 * description ${管理列表 Presenter}
 */
public class ManagerListPresenter extends BaseRecyclerPresenter<ManagerListContract.IView, ManagerListEntity> implements ManagerListContract.IPresenter{

    private String mDataTag;
    private ManagerListModel mModel;

    @Override
    public void loadData(boolean isRefresh) {
        onLoadDataSuccess(isRefresh, mModel.getData(mDataTag));
    }

    @Override
    protected void createModel() {
        mModel = ManagerListModel.getInstance();
    }

    @Override
    public void setDataTag(String dataTag) {
        mDataTag = dataTag;
    }
}
